package com.octopus.samples.gitee;

import com.octopus.core.Octopus;
import java.util.concurrent.TimeUnit;

/**
 * 爬取Gitee（码云）所有推荐项目
 *
 * @author shoulai.yang@gmail.com
 * @date 2019/08/02
 */
public class Main {
  public static void main(String[] args) {
    Octopus octopus =
        new Octopus.Builder()
            .parser(new ProjectsParser())
            .rateLimit(1, TimeUnit.SECONDS)
            .threads(1)
            .autoStop()
            .build();
    octopus.start("https://gitee.com/explore/all");
  }
}
